package anli.laoshixuesheng2;

public class Teacher extends Person {

    public Teacher(){

    }

    public Teacher(String name,int age){
        //this.name = name   不能直接访问父类的私有变量
        //this.age = age
        super(name,age);
    }

    public void teach(){
        System.out.println("用爱成就每一位学员");
    }
}
